package com.hyfrogx.modules.zoom.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.zoom.dao.HyUserZoomOrderDao;
import com.hyfrogx.modules.zoom.entity.HyUserZoomOrder;
import com.hyfrogx.modules.zoom.service.HyUserZoomOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ：Li9527
 * @date ：Created in 2019-04-08 10:22
 * @description：${description}
 * @modified By：
 * @version: $version
 */
@Service("HyUserZoomOrderService")
public class HyUserZoomOrderServiceImpl extends ServiceImpl<HyUserZoomOrderDao, HyUserZoomOrder> implements HyUserZoomOrderService {

    @Autowired
    HyUserZoomOrderDao userZoomOrderDao;


    @Override
    public Page selectPageByConditions(QueryExt query) {
        Map map = new HashMap();
        map.putAll(query.getCondition());
        query.setRecords(userZoomOrderDao.selectPageByConditions(query, map));
        return query;
    }

    @Override
    public Integer selectOrderCount(HyUserZoomOrder order) {
        return userZoomOrderDao.selectOrderCount(order);
    }


}
